#!/usr/bin/env ruby

require 'out_the_door.rb'
otd = OutTheDoor.new("config.xml")

puts "Weather"
puts "Current Conditions: #{otd.weather.current_temp_f}°, #{otd.weather.current_conditions}."
puts "Today’s Forecast: #{otd.weather.todays_high_f}°, #{otd.weather.todays_conditions}."
puts ""

puts "Transit Schedules"

# loop through corridors and print out departure info
otd.transit_corridors.each do |corridor|
  puts corridor.name

  corridor.lines.sort.each do |line|
    puts "\t#{line.name}: #{line.previous_departure}, *#{line.next_departure}*, #{line.future_departure}"
  end
end  
